import service from '@/utils/request'

export const useAssetReceiveApi = (id: number) => {
	return service.get('/nb/receive/' + id)
}

export const useAssetReceiveSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/nb/receive/edit', dataForm)
	} else {
		return service.post('/nb/receive/add', dataForm)
	}
}